Pressure volume (PV) loop measurement